package com.qingke.oo;

public class Square extends Rectangle {
	public Square() {
		super();
	}

	public Square(double side) {
		super(side, side);
	}

	public Square(double side, String color, boolean filled) {
		super(side, side, color, filled);

	}

	public double getSide() {
		return this.getLength();
	}

	public void setSide(double side) {
		this.setLength(side);
		this.setWidth(side);
	}

	public void setWidth(double side) {
		this.setLength(side);
	}

	public void setLength(double side) {
		this.setWidth(side);
	}

	public String toString() {
		return "side= " + this.getLength();
	}
}
